import { BaseService, Service, Permission } from '@/cool';

@Service('sys/user')
export default class extends BaseService {
	@Permission('labelListOfUsers')
	async labelListOfUsers(params) {
		return this.request({
			url: '/labelListOfUsers',
			params: {
				...params
			}
		});
	}
	@Permission('setLabels')
	async setLabels(params) {
		return this.request({
			url: '/setLabels',
			method: 'POST',
			data: {
				...params
			}
		});
	}
	@Permission('updateUserProp')
	updateUserProp(params) {
		return this.request({
			url: '/updateUserProp',
			method: 'POST',
			data: {
				...params
			}
		});
	}
}
